package com.jsh.api;

import com.jsh.erp.FeignRequestInterceptor;
import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.utils.BaseResponseInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "jsh-system",contextId = "loginApi",path = "/jshERP-boot/user",configuration = FeignRequestInterceptor.class)
public interface LoginApi {

    @PostMapping(value = "/login")
    BaseResponseInfo login(@RequestBody User userParam);

    @GetMapping(value = "/logout")
    BaseResponseInfo logout();
}
